export const contan = [
  {
    path: '/',
    name: 'layout',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '',
      hiddle: false,
      icon: 'Position',
    },
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: '首页',
        component: () => import('@/views/home/index.vue'),
        meta: {
          hiddle: false,
          title: '首页',
          icon: 'HomeFilled',
        },
      },
    ],
  },
  {
    path: '/screen',
    name: 'screen',
    component: () => import('@/views/screen/index.vue'),
    meta: {
      title: '数据大屏',
      hiddle: false,
      icon: 'Platform',
    },
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: 'login',
      hiddle: true,
    },
  },
]

export const asycRouters = [
  {
    path: '/auth',
    name: 'Acl',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '权限管理',
      hiddle: false,
      icon: 'Lock',
    },
    redirect: '/auth/user',
    children: [
      {
        path: '/auth/user',
        name: 'User',
        component: () => import('@/views/auth/user/index.vue'),
        meta: {
          hiddle: false,
          title: '用户管理',
          icon: 'User',
        },
      },
      {
        path: '/auth/role',
        name: 'Role',
        component: () => import('@/views/auth/role/index.vue'),
        meta: {
          hiddle: false,
          title: '角色管理',
          icon: 'UserFilled',
        },
      },
      {
        path: '/auth/menu',
        name: 'Permission',
        component: () => import('@/views/auth/menu/index.vue'),
        meta: {
          hiddle: false,
          title: '菜单管理',
          icon: 'Memo',
        },
      },
    ],
  },
  {
    path: '/pro',
    name: 'Product',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '商品管理',
      hiddle: false,
      icon: 'Goods',
    },
    redirect: '/pro/brand',
    children: [
      {
        path: '/pro/brand',
        name: 'Trademark',
        component: () => import('@/views/pro/brand/index.vue'),
        meta: {
          hiddle: false,
          title: '品牌管理',
          icon: 'Sunny',
        },
      },
      {
        path: '/pro/att',
        name: 'Attr',
        component: () => import('@/views/pro/att/index.vue'),
        meta: {
          hiddle: false,
          title: '属性管理',
          icon: 'Ship',
        },
      },
      {
        path: '/pro/spu',
        name: 'Spu',
        component: () => import('@/views/pro/spu/index.vue'),
        meta: {
          hiddle: false,
          title: 'SPU管理',
          icon: 'MoonNight',
        },
      },
      {
        path: '/pro/sku',
        name: 'Sku',
        component: () => import('@/views/pro/sku/index.vue'),
        meta: {
          hiddle: false,
          title: 'SKU管理',
          icon: 'Lightning',
        },
      },
    ],
  },
]

export const notfount = [
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    component: () => import('@/views/404/index.vue'),
    meta: {
      title: 'NotFound',
      hiddle: true,
    },
  },
]
